import request from '@/utils/axios';
import appName from "@/api/appName";

// 查询父级清单
export function queryListForFather(params) {
    return request({
      url: appName.NB+'/maintain/level/queryListForFather',
      method: 'post',
      data: params
    })
}

// 查询子级清单
export function queryListForSon(params) {
    return request({
      url: appName.NB+'/maintain/level/queryListForSon',
      method: 'post',
      data: params
    })
}

//核保等级下拉框
export function getSelectByUwlevel() {
  return request({
    url: appName.NB+'/maintain/level/getSelectByUwlevel',
    method: 'post',
    data: {}
  })
}

//核保类别下拉框
export function getSelectByUwtype() {
  return request({
    url: appName.NB+'/maintain/level/getSelectByUwtype',
    method: 'post',
    data: {}
  })
}

//
export function editData(params) {
  return request({
    url: appName.NB+'/maintain/level/editData',
    method: 'post',
    data: params
  })
}

//
export function deleteData(params) {
  return request({
    url: appName.NB+'/maintain/level/deleteData',
    method: 'post',
    data: params
  })
}

//
export function editSubData(params) {
  return request({
    url: appName.NB+'/maintain/level/editSubData',
    method: 'post',
    data: params
  })
}

//
export function deleteSubData(params) {
  return request({
    url: appName.NB+'/maintain/level/deleteSubData',
    method: 'post',
    data: params
  })
}

